package it.polimi.swim.session;

import java.util.List;

import it.polimi.swim.entity.HelpRequest;
import it.polimi.swim.entity.SystemUser;

import javax.ejb.Remote;

@Remote
public interface SystemUserManagerBeanRemote {

	
	public SystemUser createUser(String name, String surname, String city, String mail, String psw, String day, String month, String year);
	
	public SystemUser editUser(String name, String surname, String city,
			String mail, String psw, String day, String month, String year);
	
	public SystemUser validateLogin(String mail, String psw);
	
	public SystemUser searchUserById(int id);
	
	
	
	public List<SystemUser> searchUserByName();
	
	//TODO Mostra utenti con skill scelte (set= Friends o All)
	public void searchUserBySkill(int idSkill,String set);

	List<SystemUser> searchUserBySkill(int idSkill);

	List<SystemUser> showFriends(SystemUser user);

	List<SystemUser> searchUserByName(String name, String surname);

	public void editOldUser(int id, String name, String surname, String psw,
			String city);

	void addSkill(String mail, String psw, int idSkill);
	
	List<HelpRequest> getUserCompletedHelp(int id);

	public int controlUserDuplicate(String mail);

	public void createAdmin();
	
	
}
